CC = g++
LD = g++
prog = libmodel.so
SRC = \
	album.h \
	album.cpp \
	client.h \
	dom.h \
	dom.cpp \
	dom_policy.h \
	dom_policy.cpp \
	interpreter.h \
	interpreter.cpp \
	model_class.h \
	model_class.cpp \
	parser.h \
	title.h 
OBJ = dom.o \
      dom_policy.o \
      interpreter.o \
      album.o \
      model_class.o \
      title.o \
      client.o

LDFLAGS = -shared -liksemel
CFLAGS = -g -fPIC -DPIC -fvar-tracking 

all: $(prog)

${prog}: $(OBJ)
	$(LD) $(LDFLAGS) $(OBJ) -o $(prog)

%.o: %.cpp
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm *.o
	rm $(prog)

run:
	./$(prog)
